#夫类
class phone:
    IMEI=None
    producer=None
    def xinhao(self):
        print("2018")
    def call_by_5g(self):
        print("5g通话")
#子类
class phone2022(phone):
    face_id = None
    def xinhao(self):   #复写
        print("2022")
    def call_by_5g(self):   #复写
        print("开启单核模式")
        phone.call_by_5g(self)  #调用
        print("开启性能模式")

my_phone = phone2022()
my_phone.xinhao()
my_phone.call_by_5g()

